package com.example.demo.controller;

import com.example.demo.entity.Test1;
import com.example.demo.service.Test1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;



public class Test1Controller {

    Test1Service test1Service;


    public String test(){
        return "hello ";
    }


    public String add(Test1 test){
        test1Service.add(test);
        return "success";
    }
}
